package com.yang.flower.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Description: TODO
 * @Author: Yang
 * @DateTime: 2023/1/15 16:19
 **/
@Data
@TableName("shopping_cart")
public class Cart {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(exist = false)
    private String name;

    private Long userId;

    private Integer flowerId;

    private Integer num;

    private BigDecimal price;

    private String createTime;

    @TableField(exist = false)
    private String flowerName;

    @TableField(exist = false)
    private String flowerImg;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String subTotal;

}
